<template>
  <view class="activityCard" @tap="todetail">
    <image :src="image(data.face_image_id)" alt="" srcset="" class="img" />
    <view class="text">
      <view class="title">{{ data.title }}</view>
      <view class="introduction">{{ data.content }}</view>
    </view>
  </view>
</template>

<script>
// 活动中心卡片
import "./index.scss";
import Taro from "@tarojs/taro";
import { getImage } from "../../utils/request";

export default {
  props: ["data"],
  data() {
    return {
      msg: "Hello33333 world!",
    };
  },
  computed: {

  },
  created(){
console.log(this.data, "ooo");
  },
  methods: {
    todetail() {
      // console.log(this.data.id, "ooo");
      Taro.navigateTo({ url: `/pages/culture/cultruedetail/index?id=${this.data._id}` });
    },
    image(id){
      return getImage(id)
    }
  },
};
</script>
